package com.chushouya.manager.dto.admin.banner;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;

/**
 * Banner排序DTO
 * 用于批量更新Banner排序时的数据传输
 * 
 * @author chushouya
 */
@Data
@ApiModel("Banner排序")
public class BannerSortDTO {

    @ApiModelProperty(value = "Banner ID", required = true)
    @NotNull(message = "Banner ID不能为空")
    private Long bannerId;

    @ApiModelProperty(value = "排序值", required = true)
    @NotNull(message = "排序值不能为空")
    private Integer sort;
}
